#ifndef __CONFIG_H
#define __CONFIG_H

#include "stm32f4xx.h"
#include "Util.h"

#define CONFIG_FILE_BUF_SIZE	            512
#define CONFIG_LINE_BUF_SIZE	            128

#define DEFAULT_CONFIG_VERSION	  	      129
#define DEFAULT_BOARD_ID		  	    			0x00
#define DEFAULT_REC_ID										0x145

typedef struct {
    uint8_t configVersion;
	uint8_t boardId;
	uint32_t recId;
} systemConfig_t;


extern const char *configTFStrings[] ;
systemConfig_t *getConfigData(void);
void changeConfigGroup(uint32_t group);
void configFlashRead(void);
uint8_t configFlashWrite(void);
void configInit(void);

#endif
